package com.youkeyi.ddy.cloud.common.api.basic.hr.employee.contract;

import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.contract.dto.HrEmployeeContractListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.contract.param.HrEmployeeContractCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.contract.param.HrEmployeeContractDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.contract.param.HrEmployeeContractQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.contract.param.HrEmployeeContractUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * HrEmployeeContractCloudServiceFallback
 *
 * @author  liuxiawang
 * @Date 2024/2/19 2:32 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/hr/employee/contract/fallback")
public class HrEmployeeContractCloudServiceFallback implements HrEmployeeContractCloudService {

    @Override
    public HrEmployeeContractListCloudDto query(HrEmployeeContractQueryCloudParam param) {
        return new HrEmployeeContractListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(HrEmployeeContractCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(HrEmployeeContractUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(HrEmployeeContractDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
